<template>
  <div class="app">
    <Editor v-model:state="state"></Editor>
  </div>
</template>

<script>
import { ref } from "vue";
import data from "./data.json";
// 引入jsx组件
import Editor from "./packages/editor.jsx";
export default {
  name: "App",
  components: {
    Editor,
  },
  setup() {
    const state = ref(data);
    return {
      state,
    };
  },
};
</script>

<style lang="scss">
.app {
  position: fixed;
  top: 20px;
  bottom: 20px;
  left: 20px;
  right: 20px;
}
</style>
